package cn.edu.tust.controller;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class UserInfoModifyJump
 */
@WebServlet("/UserInfoModifyJumpServlet")
public class UserInfoModifyJumpServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// 设置编码
		request.setCharacterEncoding("utf-8");
		String strUserId = request.getParameter("uid");
		// 保存修改记录的id到session中
		request.getSession().setAttribute("uid", strUserId);
		// 跳转到修改页面
		response.sendRedirect("userInfoManager/userInfoModify.jsp");
	}

}
